#ifndef GRAPHICSTEXTITEMSIZED_H
#define GRAPHICSTEXTITEMSIZED_H

#include <QGraphicsTextItem>

class GraphicsTextItemSized : public QGraphicsTextItem
{
public:
    GraphicsTextItemSized(QGraphicsItem* parent = 0);
    GraphicsTextItemSized(const QString& text, QGraphicsItem* parent = 0);

    QRectF boundingRect() const;

    qreal height() const{ return height_; }
    void setHeight(qreal h){ height_ = h; }

private:
    qreal height_;
};

#endif // GRAPHICSTEXTITEMSIZED_H
